/*
 * $Id$
 */
package corejs.rt;

public final class Date {
   
   public static Invocable newInstance() {   
      return new Invocable("Date") {{
            // Date.now                               
            store("now", new Invocable() {
               @Override
               Value invoke(final ExecutionContext ec) {               
                  return Long.valueOf(new java.util.Date().getTime());
               }
            });
            
            store("prototype", new Obj(Obj.prototype));
         }

         @Override
         Value invoke(final ExecutionContext ec) {
            return null;
         }
      };
   }
}
